home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1999 October
/
PCWorld_1999-10_cd1.bin
/
Software
/
Servis
/
X-setup
/
_SETUP.1
/
XQ MSO2K Folders 1.xpl
< prev
next >
Wrap
Text File
|
1999-07-17
|
2KB
|
69 lines
"FILE"="Xteq Systems X-Setup Plugin 5.0"
"TYPE"="4"
"COUNT"="3"
"UIPATH"="System\File System\Data Folders"
"NAME"="Office 2000 Folders #1"
"VERSION"="1.1"
"LANGUAGE"="VBScript"
"TEXT 1"="Templates"
"TEXT 2"="Shared Templates"
"TEXT 3"="Queries"
"DESCRIPTION 1"="You can alter the location of different MS Office folders here."
"DESCRIPTION 2"="Please exit all Office programs before changing this settings."
"AUTHOR"="Xteq Systems"
"COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
"COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@xteq.com."
sP="HKEY_CURRENT_USER\Software\Policies\Microsoft\Office\9.0\Common\General\"
sTMP="UserTemplates" 'STR W9x - xSTR WNT
sSTM="SharedTemplates"
sQRY="UserQueriesFolder"
'"WorkgroupThemes"
Sub Plugin_Initialize
' if RegPathExists(sP) then
s=RegReadValue(sP & sTMP)
SetUIElement 1,s
s=RegReadValue(sP & sSTM)
SetUIElement 2,s
s=RegReadValue(sP & sQRY)
SetUIElement 3,s
' else
' Disable
' end if
End Sub
Sub Plugin_CheckData(ElementIndex)
End Sub
Sub Plugin_Apply(ElementIndex,ElementSubIndex)
Call Wrt(1,sP & sTMP)
Call Wrt(2,sP & sSTM)
Call Wrt(3,sP & sQRY)
Call Logoff()
End Sub
Sub Wrt(ITM,VAL)
s=GetUIElement(ITM)
if len(s)>0 then
if Right(s,1)="\" then
s=left(s,len(s)-1)
end if
Call RegWriteValue(VAL,s,1)
else
s=RegReadValue(VAL)
if IsEmpty(s)=false then Call RegDeleteValue(VAL)
end if
end sub
Sub Plugin_Terminate
End Sub